package com.thinkingstar.iads.cs.sys.enumerate;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

public enum SYS_USEING_STATUS {
    启用("0","启用"),
    禁用("1","禁用");

    private final String id;
    private final String code;

    SYS_USEING_STATUS(String id, String code) {
        this.id = id;
        this.code = code;
    }

    public String getId() {
        return id;
    }

    public String getCode() {
        return code;
    }

    public static List<Object> getAllCode(){
        List <Object> all_data = new LinkedList<>();
        Map<String,Object> jsonobj = new HashMap<String, Object>();
        jsonobj.put(SYS_USEING_STATUS.启用.id,SYS_USEING_STATUS.启用.code);
        jsonobj.put(SYS_USEING_STATUS.禁用.id,SYS_USEING_STATUS.禁用.code);
        all_data.add(jsonobj);
        return all_data;
    }
}
